{include file="../../../application/admin/view/public/head" /}
<div class="page-container p10">

    <div class="my-toolbar-box" >
    </div>

     <form class="layui-form " method="post" id="pageListForm">
         <table class="layui-table" lay-size="sm">
            <thead>
            <tr>
                <th width="80">编号</th>
                <th width="100">影片名称</th>
                <th width="100">访问设备数</th>
                <th width="100">操作</th>
            </tr>
            </thead>

            {volist name="list" id="vo"}
            <tr>
                <td>{$vo.vod_id}</td>
                <td><a target="_blank" class="layui-badge-rim " href="{:mac_url_vod_detail($vo)}?access=void">{$vo.vod_name|htmlspecialchars}</a>
                </td>
                <td>
                    <a data-full="1" data-href="{:url('ulog/deviceLogList')}?vod_id={$vo.vod_id}" class="layui-badge-rim j-iframe" href="javascript:void(0);" data-title="{$vo.vod_name} 访问记录">{$vo.device_num} - 总计访问{$vo.num}次</a>
                </td>
                <td>
                    <a class="layui-badge-rim" target="_blank" href="http://video.app.bucuo.online/index.php/explore/m3u8?id={$vo['vod_id']}&access=bucuo" href="javascript:void(0);" data-title="标记m3u8">标记m3u8</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>

        <div id="pages" class="center"></div>

    </form>
</div>

{include file="../../../application/admin/view/public/foot" /}


<script type="text/javascript">
    var curUrl="{:url('vodstatisticsnocache',$param)}";
    layui.use(['laypage', 'layer','laydate'], function() {
        var laypage = layui.laypage
                , layer = layui.layer,laydate=layui.laydate;
        laydate.render({
            elem: '#startTime'
            ,type: 'datetime'
        });
        laydate.render({
            elem: '#endTime'
            ,type: 'datetime'
        });
        laypage.render({
            elem: 'pages'
            ,count: {$total}
            ,limit: {$limit}
            ,curr: {$page}
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj,first){
                if(!first){
                    location.href = curUrl.replace('%7Bpage%7D',obj.curr).replace('%7Blimit%7D',obj.limit);
                }
            }
        });
    });
</script>
</body>
</html>